<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php $this->load->view('include/html_head')?>
</head>
<body>
<div id="wrapper">
	<?php $this->load->view('include/header')?>
	<?php $this->load->view('include/menu')?>
	<div id="page">
		<div id="content">
		<?php $this->load->view('include/sub_navi')?>
			<div class="post">
			<form action='<?php echo BACKEND_TEACHER_UPDATE_INFO_POST_PATH ?>' method=post id='update_info_form'>
				<p class="meta">个人信息修改</p>
				<div class="entry">
				<ul>
					<fieldset>
					<legend>社团指导老师基本信息</legend>
					<li>
						
						<label>姓名:</label>
						<input type='text' id='t_name' name='t_name' class="validate[required,minSize[2],maxSize[4],custom[onlyChinese]] text-input"  value='<?php echo set_value("t_name", $teacher['t_name']);?>' />
						<?php echo form_error('t_name', '<div class="error">', '</div>'); ?>
					</li>
					
					<li>
						<div id="radio">
							
							<?php
							$v1 = $v2 = '';
							if ($teacher['t_gender'] == 1) {
					        	$v1 = TRUE;
							} elseif ($teacher['t_gender'] == 2) {
								$v2 = TRUE;
							} ?>
							<label>性别:</label>
							<input type="radio" id="radio1" name="t_gender" class="validate[required] radio" value='1' <?php echo set_radio('t_gender', '1', $v1); ?>/><label for="radio1" style='font-size: 85%;'>男</label>
							<input type="radio" id="radio2" name="t_gender" class="validate[required] radio" value='2' <?php echo set_radio('t_gender', '2', $v2); ?>/><label for="radio2" style='font-size: 85%;'>女</label>
						</div>
						<?php echo form_error('t_gender', '<div class="error">', '</div>'); ?>
					</li>
					
					<li>
						
						<label>生日:</label>
						<?php $teacher['t_birth'] = $this->common->convert_birthday($teacher['t_birth']);?>
						<input type='text' id="datepicker" name='t_birth' class="validate[custom[date]] text-input" value='<?php echo set_value("t_birth", $teacher['t_birth']);?>' readonly/>
						<?php echo form_error('t_birth', '<div class="error">', '</div>'); ?>
					</li>
					
					<li>
						
						<label>手机:</label>
						<input type='text' id='t_phone' name='t_phone' class="validate[required,custom[mobilenumber],ajax[ajaxAssociationPhone]] text-input" value='<?php echo set_value("t_phone", $teacher['t_phone']);?>'/>
						<?php echo form_error('t_phone', '<div class="error">', '</div>'); ?>
					</li>
					
					<li>
						
						<label>QQ：</label>
						<input type='text' id='t_qq' name='t_qq' class="validate[required,custom[qq],ajax[ajaxAssociationQQ]] text-input" value='<?php echo set_value("t_qq", $teacher['t_qq']);?>'/>
						<?php echo form_error('t_qq', '<div class="error">', '</div>'); ?>
					</li>
					</fieldset>
					
					<li>
						<input type="hidden" name='id' value='<?php echo $teacher['id']?>' />
						<button type='submit' >保存</button>&nbsp;
						<a class='anchor_button' onclick="history.back(-1);" >返回</a>
					</li>
				 </ul>
				</div>
			</form>
			</div>
			<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
		<?php $this->load->view('include/side_bar')?>
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end #page -->
</div>
<?php $this->load->view('include/footer_content')?>
<?php $this->load->view('include/footer')?>
</body>
</html>
